package Text;

import java.util.Scanner;

public class 计算机 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.print("请输入第一个数：");
        int a = sc.nextInt();
        System.out.print("请输入第二个数：");
        int b = sc.nextInt();
        System.out.print("请输入你的操作（+，-，*，/,%）：");
        String cz = sc.next();
        switch (cz) {
            case "+" -> System.out.print(a + b);
            case "%" -> System.out.print(a % b);
            case "-" -> System.out.print(a - b);
            case "*" -> System.out.print(a * b);
            case "/" -> System.out.print(a / b);
        }
    }
}
